import Router from 'vue-router'
import routes from './routes'

export default ()=>{
	return new Router({
		routes,
		mode:'history',  //默认hash | history, hash在url中会添加#号
		// base:'/base/',  //给url中，path的前面添加路径。区分路由用的
		linkActiveClass:'active-link', //给全局的路由tab按钮添加样式类,点击或者已点击active-link
		linkExactActiveClass:'exact-active-link'  //给全局的路由tab按钮添加样式类,当前点击的tab添加exact-active-link
	})
}